<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" /> 
		<link rel="stylesheet" href="css/common.css" />
		<link rel="stylesheet" type="text/css" href="css/my_address.css">
		<script type="text/javascript" src="js/jquery-2.1.1.min.js"></script>
		<script type="text/javascript" src="js/angular.min.js" ></script>
		<script type="text/javascript" src="js/global.js"></script>
		<script type="text/javascript" src="js/my_address.js"></script>
		<title>收获地址</title>
	</head>
	<body ng-app="myApp" ng-controller="myCtrl">
	<header>
		<span class="return"><a href="javascript:void(0)" onclick="javascript :history.go(-1)"><img src="image/返回.png"></a></span>
		<span class="sign_header">收获地址</span>
	</header>
	<div class="container">
		<div id="addAddress" ng-click="toAdd()">
			<img src="image/新增地址.png">
			<span>
				<a>新增地址</a>
			</span>
			<span><img src="image/形状 2 拷贝 3.png"></span>
		</div>
		<div id="default" ng-show="show">
			<p>
				<span>
					{{ arr0.fullName }}
				</span>
				<span>
					{{ arr0.province }}
				</span>
				<span>
					{{ arr0.zip }}
				</span>
				<span class="default">默认</span>
			</p>
			<p>
				<img src="image/地址 (3).png">
				{{ arr0.province }}{{ arr0.city }}{{ arr0.district }}{{ arr0.address }}
			</p>
			<p>
				<span>
					<img src="image/手机 (4).png">
					{{ arr0.mobile }}
				</span>
				<span>
					<img src="image/iconfont-dianhua (1).png">
					{{ arr0.phone }}
				</span>
			</p>
			<p>
				<span ng-click="remove(arr0.code)"><a>删除</a></span>
				<span><a ng-click="editorAddress(arr0.code)">编辑</a></span>

			</p>
		</div>
		
		<div class="address" ng-repeat=" k in arr1 ">
			<p>
				<span>
					{{ k.fullName }}
				</span>
				<span>
					{{ k.province }}
				</span>
				<span>
					{{ k.zip }}
				</span>
				
			</p>
			<p>
				<img src="image/地址 (3).png">
				{{ k.province }}{{ k.city }}{{ k.district }}{{ k.address }}
			</p>
			<p>
				<span>
					<img src="image/手机 (4).png">
					{{ k.mobile }}
				</span>
				<span>
					<img src="image/iconfont-dianhua (1).png">
					{{ k.phone }}
				</span>
			</p>
			<p>
				<a ng-click="setMainAddress(k.code)">设为默认地址</a>
				<span ng-click="remove(k.code)"><a>删除</a></span>
				<span><a ng-click="editorAddress(k.code)">编辑</a></span>

			</p>
		</div>
		<!--提示框-->
			<div class="alert" ng-show="reminder"></div>
			<div class="reminder" ng-show="reminder">
				<p>温馨提示</p>
				<p>{{ message }}</p>
				<p ng-click="close()">确定</p>
			</div>
	</div>
	<footer>
		您已创建{{ num }}个收货地址，最多可创建20个。		
	</footer>
	</body>
</html>